package com.wistech.search.solr4;

import java.io.Serializable;

import org.apache.solr.client.solrj.SolrServer;


public interface ServerFactory extends Serializable {
	/**
	 * Get a {@link SolrServer}.
	 * 
	 * 
	 * @return The created SolrServer.
	 * 
	 * @throws SearchException
	 *             Indicates a problem opening the session; pretty rare here.
	 */
	public SolrServer getSolrServer() throws SearchException;

	void destroy() throws SearchException;

}
